package cn.credit.loan.dao.contract;

import java.util.List;

import cn.credit.loan.entity.Contract;

/**
 * 合同文本Dao层---Mapper接口
 * @author LI
 *
 */
public interface ContractMapper {
	/**
	 * 合同添加
	 * @param contract
	 * @return
	 */
	public int contractadd(Contract contract);
	/**
	 * 合同更新
	 * @param contract
	 * @return
	 */
	public int contractupdate(Contract contract);
	/**
	 * 合同删除
	 * @param contId
	 * @return
	 */
	public boolean contractdelete(int contId);
	
	/**
	 * 查询所有合同
	 * @param contract
	 * @return
	 * @throws Exception
	 */
	public List<Contract> getContractList(Contract contract)throws Exception;
}
